package com.ele.web;

import com.ele.pojo.Food;
import com.ele.pojo.ResponseData;
import com.ele.service.FoodService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Tag(name="FoodController",description = "菜品数据")
public class FoodController {
    @Resource
    private FoodService foodService;

    @GetMapping("/getFoodList")
    public ResponseData<Food> getFoodList(String typeId , String businessId){
        return foodService.getFoodList(typeId,businessId);
    }
}